﻿using BLL.Interface;
using Common.Extensions;
using Microsoft.AspNetCore.Mvc;
using Model.DTO.Public.GetList;

namespace TianXiaHuiForumManagementSystem.Controllers.Admin
{
    [Route("Admin/[controller]")]
    [ApiController]
    public class GenderTypeController : ControllerBase
    {
        private readonly IGenderTypeBLL _genderBLL;
        public GenderTypeController(IGenderTypeBLL genderBLL)
        {
            _genderBLL = genderBLL;
        }
        /// <summary>
        /// 获取性别列表
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [HttpPost, Route("GetGenderTypeList")]
        public async Task<string> GetGenderTypeList(GetListDTO param)
        {
            var result = await _genderBLL.GetGenderTypeList(param);
            return result.ToJsonFormat();
        }
    }
}
